call
Invokes an Atlas function.
Since the serialization engine does not support third-party libraries yet, there are some limitations in what types can be used as arguments and return types:
Primitives, Bson, MutableRealmInt, RealmUUID, ObjectId, RealmInstant, RealmAny, Array, Collection, and Map are valid argument types.
Results can only be deserialized to Bson, MutableRealmInt, RealmUUID, ObjectId, RealmInstant, RealmAny and primitive types
The Bson implementations for arrays or maps are
Return
result of the function call.
Parameters
name of the function to call.
arguments to the function.
the function return value type.
Throws
if the function failed in some way.
for other failures that can happen when communicating with App Services. See AppException for details.